import { HeadDownModule } from './page-layout/head-down/head-down.module';
import { LoginModule } from './login/login.module';
import { PageLayoutModule } from './page-layout/page-layout.module';
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { NgZorroAntdModule, NZ_I18N, zh_CN } from 'ng-zorro-antd';
import { NzLayoutModule } from 'ng-zorro-antd/layout';
import { IconDefinition } from '@ant-design/icons-angular';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { HomeOutline, MenuFoldOutline, MenuUnfoldOutline, EllipsisOutline } from '@ant-design/icons-angular/icons';


/** 配置 angular i18n **/
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { PageLayoutComponent } from './page-layout/page-layout.component';

registerLocaleData(zh);

const icons: IconDefinition[] = [  HomeOutline, MenuFoldOutline, MenuUnfoldOutline, EllipsisOutline ];


@NgModule({
  declarations: [
    AppComponent,
    PageLayoutComponent,

  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    // 导入 ng-zorro-antd 模块
    NgZorroAntdModule,
    NzLayoutModule,
    NzIconModule,
    PageLayoutModule,
    LoginModule,
    HeadDownModule
  ],
    // 配置 ng-zorro-antd 国际化（文案 及 日期）
  providers   : [
    { provide: NZ_I18N, useValue: zh_CN }
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
